
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>查詢所有用戶</title>
</head>
<body>
<table border="1">
    <tr>
        <td>编号</td>
        <td>姓名</td>
        <td>年龄</td>
        <td>邮箱</td>
        <td>操作</td>
    </tr>
    <tr th:each="u : ${upage.records}">
        <td th:text="${u.id}"></td>
        <td th:text="${u.name}"></td>
        <td th:text="${u.age}"></td>
        <td th:text="${u.email}"></td>
        <td>
            <!--<a th:href="@{/user/details/}+${u.id}">详情</a>-->
            <a th:href="@{'/user/details/'+${u.id}}">详情2</a>
        </td>
    </tr>
</table>
<a th:href="@{'/user/listpages/'+${upage.current - 1}}">上一页</a>
<a th:href="@{'/user/listpages/'+${upage.hasNext()?upage.current+1:upage.pages}}">下一页</a>
<!--<a th:href="@{'/user/listpages/'+${(upage.current >= upage.pages)?upage.pages:upage.current+1}}">下一页</a>-->
</body>
</html>